namespace UniversalAdminSystem.Domian.Core.ValueObjects;

public record ConversationId
{
    public Guid Value { get; init; }

    private ConversationId(Guid value)
    {
        if (value == Guid.Empty)
        {
            throw new ArgumentException("ConversationId不能为空");
        }
        Value = value;
    }

    public static ConversationId Create(Guid value)
    {
        return new ConversationId(value);
    }

    public override string ToString() => Value.ToString();
}